Repository navigation
[Feat] Add Amazon Ergo 1.0 to the Bedrock model list - #2797
zoomote[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Review statusThis PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging. Current step: Required CI passed. Waiting for automated review of the latest commit. If automated review does not start, a maintainer must restart it. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Related GitHub Issue
Closes: N/A — this PR has no approved issue yet. It was opened on direct request to add Amazon's new Ergo 1.0 model. A maintainer can link an issue before review.
Description
Amazon added the Ergo 1.0 model (
amazon.ergo-1.0) to Bedrock. This PR adds the model to the static Bedrock registry so users can select it from the model dropdown.The new entry carries the AWS model card facts: 1,048,576-token context window, 131,072-token maximum output, text input only, and Global CRIS list prices of $1.00 input / $3.00 output / $1.25 cache write (30-minute TTL) / $0.03 cache read per million tokens. US CRIS bills $1.10 / $3.30 / $1.375 / $0.033.
The model works only through cross-region inference. The entry joins
BEDROCK_GLOBAL_INFERENCE_MODEL_IDS, so theglobal.amazon.ergo-1.0profile works when global inference is on. The existing region-prefix logic already buildsus.amazon.ergo-1.0from the region mapping, becauseparseBaseModelIdstrips profile prefixes by name and does not depend on the-v1:0suffix. No provider code changes were needed.One capability gap: Ergo adjusts reasoning through effort levels, not
budget_tokens. The Bedrock handler has no generic effort path, andsupportsReasoningBudgetwould produce a wrong request shape. The entry therefore sets no reasoning flags, and Zoo Code invokes Ergo at its default effort. The registry entry documents this.Test Procedure
New tests cover the suffix-less model ID in
src/api/providers/__tests__/bedrock-inference-profiles.spec.ts:us.prefix applies with cross-region inference on a US region.global.prefix applies when global inference is on, and wins when both are on.Reviewers can repeat with, from the repository root:
pnpm exec vitest run src/api/providers/__tests__/bedrock-inference-profiles.spec.ts(29 passed)pnpm exec vitest run src/api/providers/__tests__/bedrock.spec.ts(168 passed)pnpm test(14/14 turbo tasks pass)pnpm run check-types(passes)Also verified with no change needed: the OpenRouter and Vercel AI Gateway model lists stay dynamic, so
amazon/ergo-1.0is covered there by the fetchers.OPEN_ROUTER_PROMPT_CACHING_MODELSand the reasoning-budget sets must not gain Ergo, because Ergo uses neither Anthropic-style cache breakpoints nor budget tokens. The Bedrock embedding list, e2e fixtures, and CLI lists have no Ergo touchpoint.Recorded Stream (new provider only)
Not applicable. Bedrock is an existing provider; this PR adds one model.
Pre-Submission Checklist
Visual Snapshots
No
*.visual.tsxsnapshot was added. The change is a data-level dropdown option with no at-a-glance visual surface. A settings screenshot was attempted through the webview dev server in the task sandbox, but the settings view renders only inside the VS Code extension host, so no genuine screenshot was possible without an editor session. The docs PR states this instead of a simulated capture.Videos (interaction / animation only)
Not applicable.
Documentation Updates
Additional Notes
The pricing in the registry uses Global CRIS as the listed prices, per the request. The AWS model card is the source: https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html
Related PRs